#include <iostream>
//#include "fib.h"
#include "neteaseGame.h"
void testReadNumber() {
	std::string s("12303aa45");
	int i = 0;
	std::cout << "now begins:\n";
	int r = readNumber(s, i);
	printf("%d, i is %d.\n", r, i);
	std::cout << "r is " << r << std::endl;
}

void testCalcLisp() {
	//const std::string s("(+ 1 2 (* 1 17))");
	const std::string s("(+ (+ 1 2) (* 2 3) (-2 1 ))");

	std::cout << "result of " << s << " is " << calcLisp(s) << std::endl;
	//printf("result of %s is %d.\n", s, calcLisp(s));
	int i = 3;
	//printf("num is %d.\n", readNumber(s,i));
}


void testEx() {
	int a[2000];
	char *pc = (char *)a;
	for (int i = 0; i < 2000; ++i) {
		a[i] = -1 - i;
	}
	int(*p)[10];

	int *pp;
	std::cout << strlen(pc) << std::endl;
	std::cout << sizeof(char) << std::endl;
	std::cout << sizeof(int) << " " << sizeof(double) << " " << sizeof(pp) << " " << sizeof(a) << std::endl;
}


int main() {
	//std::cout << fib(9) << std::endl;
	//testReadNumber();
	//calPrefix();
	testEx();
	return 0;
}